<?php

/**
 * @name Db
 * @author Roman Metlinskyi <r.metlinskyi@gmail.com>
 * @version 0.0
 */

class Db extends My
{
    
  private static $_db;

  private function __construct()
  {
    $this->__init(__FILE__,__CLASS__);
    $this->__preload();
  }
  
  private function __clone()
  {
    //singleton protected
  }

  public static function Db()
  {
    return (!isset(self::$_db))
          ? (self::$_db = new self())
          : self::$_db;
  } 
}